package com.letoo.sso.dataaccess.datasource;

/**
 * 用一个线程变量存储拦截器后的数据源
 * 
 * @author dengjie
 *
 */
public class DynamicDataSourceHolder {

    public static final ThreadLocal<String> holder = new ThreadLocal<String>();

    public static void putDataSource(String name) {
        holder.set(name);
    }

    public static String getDataSouce() {
        return holder.get();
    }
}
